export const genMaxId = (list:any[], key: string = 'id') => {
    return list.reduce((max, item) => Math.max(max, item[key]), 0) + 1
}